
/* -----------------
* brief 
* 1. this is code gen by tools 
* 2. array like [a,b,c] after each field, define the ui html tag in view, 
		a for title, 
		b for show or not ,  
		c for element html tag , currently support : check、radio、select、input、textarea、upload
* 3. XXX
*/

package user

import (
	"github.com/mjiulee/lego"
	"saas_sys_base/common"
)

func init() {
	lego.AddBeanToSynList(new(AppTenantRel))
}

/* table: "tb_app_tenant_rel"
 * -----------------
*/
type AppTenantRel struct {
	Id        int64  `xorm:"pk" json:",string"`                  // ["id","hide","hidden"]
	IfDel     int `xorm:"default 0"` // ["deleted","hide","hidden"]
	Cdate     string `xorm:"DateTime created"`    // ["create","show","datetime"]
	Udate     string `xorm:"DateTime updated"`    // ["update","show","datetime"]
    // add your custom field here

    common.Who `xorm:"extends"`
	UserAppId int64 `xorm:"default 0" json:",string"` //  ["C端app id","show","input"]
	UserAppEnable  int `xorm:"default 0"` //  ["C端app上线状态","show","radio"]

	TenantAppId int64 `xorm:"default 0" json:",string"` //  ["租户端app id","show","input"]
	TenantAppEnable  int `xorm:"default 0"` //  ["租户端app上线状态","show","radio"]
}